package com.framework.common.message;

public class User {
    private Integer uid;
    private String nickname;
    private String token;
    private String role;
    private String platform;

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public String getPlatform() {
        return platform;
    }

    public void setPlatform(String platform) {
        this.platform = platform;
    }

    public void clearToken(){
        this.token = "";
    }

    public User(){
        this.uid = -1;
        this.nickname = "anymouns";
        this.token = "";
        this.platform = "none";
    }
}
